package org.turnlink.sclm.model;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
 * ContactContactList entity. @author MyEclipse Persistence Tools
 */
@XStreamAlias("contactContactList")
@Entity
@Table(name = "contact_contact_list", catalog = "turnlink")
public class ContactContactList implements java.io.Serializable {

	// Fields

	private ContactContactListId id;

	// Constructors

	/** default constructor */
	public ContactContactList() {
	}

	/** full constructor */
	public ContactContactList(ContactContactListId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "contactId", column = @Column(name = "contact_id", nullable = false)),
			@AttributeOverride(name = "contactListId", column = @Column(name = "contact_list_id", nullable = false)) })
	public ContactContactListId getId() {
		return this.id;
	}

	public void setId(ContactContactListId id) {
		this.id = id;
	}

}